<html>
<head>
    <title>基础平台管理控制台</title>
    <#include "/common/import.ftl" >
    <script>
        //添加tab页面
        function addTab(title, url) {
            if ($('#maintabs').tabs('exists', title)) {
                $.messager.confirm('确认', '确定要刷新标签页： <font color=red>' + title + '</font> 吗?',
                        function (flag) {
                            if (flag) {
                                var content = '<iframe scrolling="auto" frameborder="0"  src="'
                                        + url
                                        + '" style="width:100%;height:100%;"></iframe>';
                                var tab = $('#maintabs').tabs('getTab',
                                        title);
                                $('#maintabs').tabs('update', {
                                    tab: tab,
                                    options: {
                                        title: title,
                                        content: content,
                                        closable: true
                                    }
                                });
                                $('#maintabs').tabs('select', title);
                            }
                        });
            } else {
                var content = '<iframe scrolling="auto" frameborder="0"  src="'
                        + url + '" style="width:100%;height:100%;"></iframe>';
                $('#maintabs').tabs('add', {
                    title: title,
                    content: content,
                    closable: true
                });
            }
        }

        //用户退出
        function lgnout() {
            $.messager.confirm('提示', '您确定工作已经保存,并退出该系统?', function (r) {
                if (r) {
                    location.href = '${ctx}/logout?go=${basePath!""}';
                }
            });
        }
    </script>

    <style>
        h3 {
            width: 98%;
            border: 1px solid #eee;
            margin: 2px;
            margin-left: 2px;
            height: 20px;
            font-size: 12px;
            font-weight: normal;
            line-height: 20px;
            vertical-align: center;
            text-indent: 5px;
            cursor: pointer;
        }
    </style>
</head>
<body class="easyui-layout" style="overflow-y: hidden" scroll="no">
<div region="north" border="false"
     style="height: 80px; background: #a8d7e9;">
    <div id="top" class="top" region="north" border="false">
				<span style="float: left; line-height: 66px; font-size: 30px; font-family: 微软雅黑; color: #000000; text-shadow: 5px 5px 5px #0c4b09">
					&nbsp;&nbsp;&nbsp;&nbsp;${title!''}</span>
        <span style="float: right; padding: 4px;">
				<font color="#9282;">欢迎您：${loginUser.userCname} | </font>
				<font color="#ddeeff">
                    <a href="#" onclick="lgnout();" style="text-decoration: none; color: #9282;">退出系统</a> </font>
				</span>
    </div>
</div>
<div region="west" split="true" title="功能菜单列表" style="width: 190px; padding: 0px;">
    <div id="leftmenu" class="easyui-accordion" fit="true" border="false">
        <div title="机构与用户管理" iconCls="icon-undo">
            <h3 onclick="addTab('机构管理','${ctx}/send/uct/org-list','icon-org')">机构管理</h3>
            <h3 onclick="addTab('用户管理','${ctx}/uct/user/list.action','icon-user')">用户管理</h3>
            <h3 onclick="addTab('用户回收管理','${ctx}/uct/user/gc_list.action','icon-user')">用户回收管理</h3>
        </div>
        <div title="资源管理" iconCls="icon-undo">
            <h3 onclick="addTab('系统注册','${ctx}/uct/sys/list.action','icon-sys')">系统注册</h3>
            <h3 onclick="addTab('角色管理','${ctx}/uct/role/list.action','icon-role')">角色管理</h3>
            <h3 onclick="addTab('系统权限管理','${ctx}/uct/act/list.action','icon-act')">系统资源管理</h3>
            <!--h3 onclick="addTab('数据字典管理','${ctx}/dict/cate/list.action','icon-dict')">数据字典管理</h3-->
            <!--h3 onclick="addTab('动态表单管理','${ctx}/info/core/list.action','icon-dict')">动态表单管理</h3-->
            <!-- h3 onclick="addTab('系统访问控制管理','${ctx}/uct/sys/lock-sys-list.action','icon-lock')">系统访问控制管理</h3 -->
        </div>
        <div title="审计日志管理" iconCls="icon-undo">
            <h3 onclick="addTab('审计设置','${ctx}/audit/model/list.action','icon-audit')">审计设置</h3>
            <h3 onclick="addTab('审计查询','${ctx}/audit/logger/list.action','icon-audit')"> 审计查询</h3>
        </div>
    </div>
</div>
<div id="mainPanle" region="center" style="overflow: hidden;">
    <div id="maintabs" class="easyui-tabs" fit="true" border="false">
        <div class="easyui-tab" title="首页" href=""
             style="padding: 2px; overflow: hidden;">
            <div class="demo-info" style="margin-bottom: 10px">
                <div class="demo-tip icon-tip"></div>
                <div>${title }</div>
            </div>
        </div>
    </div>
</div>
<!-- 底部 -->
<div region="south" border="false" style="height: 25px; overflow: hidden;">
    <div align="center" style="color: #1C86EE; padding-top: 2px">&copy; 版权所有 <span class="tip">${title }<label id="show"/> </span></div>
</div>
</body>

</html>